<%--
  Created by IntelliJ IDEA.
  User: oldliu
  Date: 2022/7/5
  Time: 11:18
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>cookie</title>
</head>
<body>
    <div>
        <%=session.getId()%>
    </div>
    <hr/>
  <%
      Cookie[] cookies = request.getCookies();
      for(int i=0;cookies!=null&&i<cookies.length;i++){
          Cookie c=cookies[i];


  %>
   <h1><%=c.getName()%>====<%=c.getValue()%></h1>
<%}%>
</body>
</html>
